package kr.saeildamil.androidforstudy2.ch25;

import kr.saeildamil.androidforstudy2.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch25Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch25_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch25_btn01:
			intent.setClass(this, FileIO.class);
			break;
		case R.id.ch25_btn02:
			intent.setClass(this, SDCard.class);
			break;
		case R.id.ch25_btn03:
			intent.setClass(this, FileExplorer.class);
			break;
		case R.id.ch25_btn04:
			intent.setClass(this, TextPreferenceTest.class);
			break;
		}
		startActivity(intent);
	}
}
